package com.boot2.core;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * @author zhangweilin
 * @description: 主键是String
 * @date 2018/8/16
 */
@Data
@MappedSuperclass
public class StringBaseEntity extends BaseEntity {
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键id")
    @Id
    protected String id;


    public StringBaseEntity() {
    }

    public StringBaseEntity(boolean isInit) {
        super(isInit);
    }

    @Override
    public String getId() {
        return id;
    }
}
